from gen473 import generate_matchsticks
from alg473 import Solution

def run_tests():
    sol = Solution()

    print("=== 可构成正方形 ===")
    data = generate_matchsticks(12, 60)
    print("数据：", data)
    print("结果：", sol.makesquare(data))

    print("\n=== 不可构成正方形 ===")
    data = generate_matchsticks(10)
    print("数据：", data)
    print("结果：", sol.makesquare(data))

if __name__ == "__main__":
    run_tests()
